package com.lx.dynamicdatasouce.mybatis.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @author lX
 * @version JDK 8
 * @className DynamicDatasourceApplication (此处以class为例)
 * @date 2024/10/7
 * @description 基于Spring实现动态数据源Demo启动类
 */
@SpringBootApplication
@MapperScan("com.lx.dynamicdatasouce.demo.mapper")
@EnableAspectJAutoProxy(exposeProxy=true) // 启动AOP
public class DynamicDatasourceApplication {

    public static void main(String[] args) {
        SpringApplication.run(DynamicDatasourceApplication.class, args);
    }

}
